package cn.shentianlan.dao;

import cn.shentianlan.domain.Device;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceDao {
    int queryDeviceCount();

    List<Device> selectDeviceBySearch(@Param("searchValue") String searchValue,@Param("length") int length,@Param("start") int start);

    int queryDeviceCountBySearch(String searchValue);

    List<Device> selectDevices(@Param("start") int start,@Param("length") int length);

    void deleteDeviceById(String gd_dev_id);

    void insertDevice(Device device);

    void updateDevice(Device device);

    Device selectDeviceById(String gd_dev_id);


    List<Device> getDevice();
}
